/*
 * File Created: 2023-11-19 08:15:21
 * Author: 余保林 (yubaolin6@outlook.com)
 * Desc: 
 * Last Modified: 2023-11-19 08:23:06
 * Modified By: 余保林 (yubaolin6@outlook.com>)
 */

import request from '@/utils/request.js'

// 分页
export function omnibusPageList(query) {
  return request({
    url: '/api/projectConfig/pageQueryOmnibusConfig',
    method: 'get',
    params: query
  })
}

// 属性配置下拉
export function queryOmnibusConfig(query) {
  return request({
    url: '/api/projectConfig/queryOmnibusConfig',
    method: 'get',
    params: query
  })
}

export function omnibusDelete(data) {
  return request({
    url: '/api/projectConfig/deleteProjectConfig',
    method: 'delete',
    data
  })
}

// 批量保存
export function omnibusBatchSave(data) {
  return request({
    url: '/api/projectConfig/batchSaveEditPorjectConfig',
    method: 'post',
    data
  })
}

// 分页查询模版
export function templatePageList(query) {
  return request({
    url: '/api/template/pageQueryTemplate',
    method: 'get',
    params: query
  })
}

// 协议模版插入
export function insertTemplate(data) {
  return request({
    url: '/api/template/insertTemplate',
    method: 'post',
    data
  })
}

// 协议模版保存更新
export function templateAttrSaveUpdate(data) {
  return request({
    url: '/api/template/templateAttrSaveUpdate',
    method: 'post',
    data
  })
}

// 协议模版删除
export function deleteTemplate(data) {
  return request({
    url: '/api/template/deleteTemplate',
    method: 'delete',
    data
  })
}

// 查询模版详情
export function templateDetailAttrList(query) {
  return request({
    url: '/api/template/templateDetailAttrList',
    method: 'get',
    params: query
  })
}

// 工具箱控件数据
export function templateTool(query) {
  return request({
    url: '/api/template/templateTool',
    method: 'get',
    params: query
  })
}

// 图标
export function templateIcons() {
  return request({
    url: '/api/template/findIcons',
    method: 'get'
  })
}


// 图标
export function deleteTemplateInfo(data) {
  return request({
    url: `/api/step/deleteTemplateInfo`,
    method: 'get',
    params: data,
  })
}